<?php
/**
 * Proforma Model
 */
class Proforma extends AppModel {
/**
 * associations
 *
 * @var array
 */
  var $belongsTo = array(
      'Customer' => array(
         'className' => 'Customer',
         'foreignKey' => 'customer_id',
         'conditions' => '',
         'order' => '',
         'limit' => '',
         'dependent' => false
      )
   );

    var $hasOne = array(
        'Sale' => array(
            'className' => 'Sale',
            'foreignKey' => 'proforma_id',
            'dependent' => false,
            'conditions' => '',
            'fields' => '',
            'order' => '',
            'limit' => '',
            'offset' => '',
            'exclusive' => '',
            'finderQuery' => '',
            'counterQuery' => ''
        )
    );

   var $hasMany = array(
		'ProformaItem' => array(
			'className' => 'ProformaItem',
			'foreignKey' => 'proforma_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

    
}
